package com.atguigu.gulimall.member.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Yanglinfengkk
 * @FeignClient("调用服务名") 告诉SpringCloud这个接口是远程客户端,这是一个声明式的远程调用
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {
    /**
     *  方法的注解及方法名(签名)
     *  @RequestMapping("完整路径")
     */
    @RequestMapping("/coupon/coupon/member/list")
    public R memberCoupons();
}
